@import "../css/variables";
.picker-panel {
  color: $datePicker-color;
  border: 1px solid $datePicker-border-color;
  box-shadow: 0 2px 6px #ccc;
  background: #fff;
  border-radius: 2px;
  line-height: 20px;
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 3000;

  .picker-panel__body, .picker-panel__body-wrapper {
    &:after {
      content: "";
      display: table;
      clear: both;
    }
  }

  .picker-panel__content {
    position: relative;
  }

  &:not(.date-range-picker) .picker-panel__content {
    margin: 15px;
  }

  .picker-panel__footer {
    border-top: 1px solid $datePicker-inner-border-color;
    padding: 4px;
    text-align: right;
    background-color: #fff;
    position: relative;
  }

  .picker-panel__shortcut {
    display: block;
    width: 100%;
    border: 0;
    background-color: transparent;
    line-height: 28px;
    font-size: 14px;
    color: $datePicker-color;
    padding-left: 12px;
    text-align: left;
    outline: none;
    cursor: pointer;

    &:hover {
      background-color: $datePicker-cell-hover-color;
    }

    &.active {
      background-color: #e6f1fe;
      color: $datePicker-active-color;
    }
  }

  .picker-panel__btn {
    border: 1px solid #dcdcdc;
    color: #333;
    line-height: 24px;
    border-radius: 2px;
    padding: 0 20px;
    cursor: pointer;
    background-color: transparent;
    outline: none;
    font-size: 12px;
    &:hover {
      background-color: $brand-primary;
      color: #fff;
    }

    &[disabled] {
      color: #cccccc;
      cursor: not-allowed;
    }
  }

  .picker-panel__icon-btn {
    //font-family: FontAwesome;
    font-size: 22px;
    color: $datePicker-icon-color;
    border: 0;
    background: transparent;
    cursor: pointer;
    outline: none;

    &:hover {
      color: $datePicker-text-hover-color;
    }
  }

  .picker-panel__link-btn {
    cursor: pointer;
    color: $brand-primary;
    text-decoration: none;
    padding: 0 10px;
    font-size: 12px;
  }
}

.picker-panel *[slot=sidebar],
.picker-panel__sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  border-right: 1px solid $datePicker-inner-border-color;
  box-sizing: border-box;
  padding-top: 6px;
  background-color: #fff;
  overflow: auto;
}

.picker-panel *[slot=sidebar] + .picker-panel__body,
.picker-panel__sidebar + .picker-panel__body {
  margin-left: 110px;
}


.time-panel {
  //position: absolute;
  //top: 34px;
  //left: 5px;
  //right: 5px;
  //z-index: 3001;
  text-align: center;
  white-space: nowrap;
  //background: #fff;
  //border: solid 1px #ccc;
  display: inline-block;
  vertical-align: middle;
  height: 34px;
  //padding: 0 10px;
  //box-shadow: 0 2px 6px #ccc;

  select{
    display: inline-block;
    width: 45px;
    height: 23px;
    font-size: 14px;
    margin-top: 6px;
  }
}

.time-panel__footer {
  display: block;
  text-align: right;
  padding-right: 4px;
  button {
    margin-top: 10px;
    display: inline-block;
    font-size: 12px;
    vertical-align: middle;
    height: 24px;

    border: 1px solid #dcdcdc;
    color: #333;
    border-radius: 2px;
    padding: 0 10px;
    cursor: pointer;
    background-color: transparent;
    outline: none;

    &:hover {
      background: $brand-primary;
      color: #fff;
    }
  }
}
